package com.shurdroides.sintesi;

import javax.persistence.EntityManagerFactory;
import javax.persistence.Persistence;

/**
 * Clase entity manager factory que genera entity manager para la persistencia
 * de JPA
 * @author alumneT
 *
 */
public class EMF {

	private static final EntityManagerFactory emfInstance =
        Persistence.createEntityManagerFactory("transactions-optional");

    private EMF() {}

    public static EntityManagerFactory get() {
        return emfInstance;
    }
    
}
